package com.keba.lamp.complaint.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * 案件类型和组件库关系表（证据目录）
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-03-27 22:17:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("ss_evidence_component_case_type_rel")
public class EvidenceComponentCaseTypeRel extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 唯一标识字符串
     */
    @TableField(value = "code", condition = LIKE)
    private String code;
    /**
     * 业务类型[01-起诉状，02-答辩状 ]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.BIZ_TYPE)
     */
    @TableField(value = "biz_type", condition = LIKE)
    private String bizType;
    /**
     * 案件类别;[01-贷款 99-其它]@Echo(api = EchoApi.DICTIONARY_ITEM_FEIGN_CLASS, dictType = EchoDictType.System.CASE_TYPE)
     */
    @TableField(value = "case_type", condition = LIKE)
    private String caseType;
    /**
     * 组件ID
     */
    @TableField(value = "component_id", condition = EQUAL)
    private String componentId;
    /**
     * 组件标识
     */
    @TableField(value = "component_code", condition = LIKE)
    private String componentCode;
    /**
     * 租户id(0标识平台，非0标识租户）
     */
    @TableField(value = "tenant_id", condition = EQUAL)
    private Long tenantId;



}
